package core_handle

import (
	"github.com/kataras/iris/v12"
	core_prepare "iris_test/core/prepare"
	"sync"
)

//当前handle用来初始化一些信息

func PrepareHandel(ctx iris.Context) {
	wg := sync.WaitGroup{}
	for _, v := range core_prepare.PrepareArr {
		wg.Add(1)
		go v(&wg, ctx);
	}
	wg.Wait()
	ctx.Next()
}